<!-- 设备维修记录 -->

<template>
  <WebTable path="repair" auto>
    <RowIndex />

    <RowTitle label="工单编号" bind="orderCode" :onShow="windowDetail" />

    <RowText label="创建人" bind="releaseUserName" />

    <RowTime label="创建时间" bind="createTime" width="auto" />

    <RowText label="处理人" bind="resolverUserName" />

    <RowTime label="完成时间" bind="finishTime" width="auto" />

    <RowStatus label="状态" bind="status" :dict="repair_GETTER.STATUS" width="auto" />

    <RowOperate :btns="['show']" :onShow="windowDetail" :width="120" />
  </WebTable>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import mixDetailToTable from '@admin/components/detail/mixDetailToTable'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'DeviceRepair',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [mixDetailToTable('repair', 'DetailRepair')],

  /**
   * 创建完成 (先抽取再调用)
   */
  created() {
    this.$set(this.repair_DICT, 'task_status', CORE.DICT.task_status)
  },
}
</script>
